<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    @@ include("../../header.jsp"){} $$
    <!-- jqgrid-->
    <link href="/static/css/bootstrap.css?v=3.3.6" rel="stylesheet">
    <link href="/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/jqgrid/jqgrid.css" rel="stylesheet">
    <style>
        .ui-jqgrid-btable tbody tr td{
            vertical-align: middle!important;
        }
    </style>
</head>
<body>
    <div class="content-search">
        <div style="padding:15px;">
            <form id="search" class="layui-form layui-form-pane" lay-filter="form">
                <div class="layui-inline">
                    <btl:auth type="button" perm="biz:record:process" iconText="&#xe615;"
                               onclick="return search();" text="刷新"/>
                </div>
            </form>
        </div>
    </div>
        <!-- 内容主体区域 -->
    <div style="padding: 2px;">
        <div class="jqGrid_wrapper">
            <table id="table"></table>
            <div id="pager" ></div>
        </div>
    </div>
</div>
<script src="/static/jquery/jquery.min.js?v=2.2.4"></script>
<script src="/static/jquery/jquery.form.js?v=3.50.0"></script>
<script src="/static/jqgrid/i18n/grid.locale-cnffe4.js?0820"></script>
<script src="/static/jqgrid/jquery.jqGrid.minffe4.js?0820"></script>
<script src="/static/jqgrid/frozen.js?v=1.0.1"></script>
<script src="/static/jqgrid/myjqGrid.js"></script>
<script src="/static/layui/layui.js"></script>
<script>

    layui.use('form', function(){
    });

    var colNames = ["状态", "处理人", "详情", "时间"];
    var colModel = [{
        name : "status",
        index : "status",
        width : 100,
        align : "center"
    },{
        name : "principal",
        index : "principal",
        sortable : false,
        editable : false,
        width : 100,
        align : "center"
    },{
        name : "subscription",
        index : "subscription",
        sortable : false,
        editable : false,
        width : 150,
        align : "left"
    },{
        name : "timestamp",
        index : "timestamp",
        sortable : false,
        editable : false,
        width : 100,
        align : "center"
    }];

    var myJqGrid = null;
    $(document).ready(function () {
        myJqGrid = new MyJqGrid({
            jqGrid_id: 'table',
            data: "/pc/biz/record/process.json",
            isSubGrid: false,
            autowidth: true,
            shrinkToFit: true,
            autoScroll: true,
            colNames: colNames,
            colModel: colModel
        })
    });

    function search() {
        var id = ${record.id};
        myJqGrid.reloadGrid({"id": id});
        return false;
    }

</script>
</body>
</html>